package com.czy.owner.entity;

/**
 * Created by wangyang on 2016/12/9 0009.
 */

public class CityCodeModel {

    private int engine_num;
    private int body_num;
    private int city_id;
    private String car_head;



    public CityCodeModel(int engine_num, int body_num, int city_id, String car_head) {
        this.engine_num = engine_num;
        this.body_num = body_num;
        this.city_id = city_id;
        this.car_head = car_head;
    }
    public String getCar_head() {
        return car_head;
    }

    public void setCar_head(String car_head) {
        this.car_head = car_head;
    }

    public int getEngine_num() {
        return engine_num;
    }

    public void setEngine_num(int engine_num) {
        this.engine_num = engine_num;
    }

    public int getBody_num() {
        return body_num;
    }

    public void setBody_num(int body_num) {
        this.body_num = body_num;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CityCodeModel that = (CityCodeModel) o;

        return car_head != null ? car_head.equals(that.car_head) : that.car_head == null;

    }

    @Override
    public int hashCode() {
        return car_head != null ? car_head.hashCode() : 0;
    }
}
